import request from 'api/request'

export function addTag(data) {
  return request({
    url: '/tag/add',
    method: 'post',
    data
  })
}

export function getTag(data) {
  return request({
    url: '/tag/list',
    method: 'post',
    data
  })
}

export function updateTag(id, data) {
  return request({
    url: `/tag/update/${id}`,
    method: 'patch',
    data
  })
}

export function delTag(id) {
  return request({
    url: '/tag/del',
    method: 'get',
    params: { id }
  })
}
